<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>女朋友</title>
</head>
<body>
	<a href="${pageContext.request.contextPath }/love">回到情侣页面</a>
	<table border="1">
		<tr><th>id</th><th>名字</th><th>年龄</th><th>描述</th><th>男朋友</th><th>操作</th></tr>
		<c:forEach items="${girlFriends }" var="girlFriend">
			<tr><td>${girlFriend.gid }</td><td>${girlFriend.gname }</td><td>${girlFriend.gage }</td><td>${girlFriend.gdetail }</td>
			<td><c:forEach items="${girlFriend.list }" var="boyfriend">
				${boyfriend.bname }${boyfriend.bage }${boyfriend.bdetail }
			</c:forEach></td>
			<td><a href="${pageContext.request.contextPath }/toUpdateGirlFriend/${girlFriend.gid}">更新|</a>
			<a href="${pageContext.request.contextPath }/deleteGirlFriend/${girlFriend.gid}">删除</a><span>${msg }</span></td></tr>
		</c:forEach>
	</table>
</body>
</html>